package com.pipayshop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pipayshop.entity.UserWithdrawal;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserWithdrawalMapper extends BaseMapper<UserWithdrawal> {

    List<UserWithdrawal> selectAll();

    int deleteByUserId(@Param("id") Long id);

    List<UserWithdrawal> selectByUserId(@Param("userId") Integer userId);

    boolean updateByState(@Param("id") Long id);
}
